package com.zqx.command.client;

import com.zqx.command.abstractcommand.Command;
import com.zqx.command.request.FunctionButton;
import com.zqx.command.utils.XMLUtil;

/**
 * description: 客户端测试
 * @author zqx
 * @date 2018/09/04
 */
public class Client {
    public static void main(String[] args) {
        FunctionButton functionButton = new FunctionButton();
        Command command;//定义命令对象
        command = (Command) XMLUtil.getBean();// 读取配置文件，反射生成对象
        functionButton.setCommand(command);//将命令对象注入功能键
        functionButton.click();//调用功能键的业务方法

    }
}
